#!/usr/bin/gnuplot

#set terminal post eps 24
set terminal post color 24

# map task per host 
set output "maptasks.eps"
set xlabel "Host ID"
set ylabel "# of tasks"

plot "maptasks.dat" with impulses 

# reduce task per host 
set output "reducetasks.eps"
set xlabel "Host ID"
set ylabel "# of tasks"

plot "reducetasks.dat" with impulses

# file read bytes per host 
set output "fileread.eps"
set xlabel "Host ID"
set ylabel "File Read (Bytes)"

plot "fileread.dat" with impulses

# file write bytes per host 
set output "filewrite.eps"
set xlabel "Host ID"
set ylabel "File Write (Bytes)"

plot "filewrite.dat" with impulses

# hdfs read bytes per host 
set output "hdfsread.eps"
set xlabel "Host ID"
set ylabel "HDFS Read (Bytes)"

plot "hdfsread.dat" with impulses


# map input bytes per host 
set output "mapin.eps"
set xlabel "Host ID"
set ylabel "Map Input (Bytes)"

plot "mapin.dat" with impulses

# map output bytes per host 
set output "mapout.eps"
set xlabel "Host ID"
set ylabel "Map Output (Bytes)"

plot "mapout.dat" with impulses


# shuffle bytes per host 
set output "shuffle.eps"
set xlabel "Host ID"
set ylabel "Reduce Shuffle (Bytes)"

plot "shuffle.dat" with impulses

